{% extends 'base.html' %}

{% block title %}取消收藏 - 旅游舆情监测{% endblock %}

{% block content %}
<div class="container">
    <div class="row">
        <div class="col-md-6 col-md-offset-3">
            <div class="panel panel-warning">
                <div class="panel-heading">
                    <h3 class="panel-title">确认取消收藏</h3>
                </div>
                <div class="panel-body">
                    <div class="alert alert-warning">
                        <i class="fa fa-exclamation-triangle"></i>
                        您确定要取消收藏这个景点吗？
                    </div>
                    
                    <div class="attraction-info mb-4">
                        <h5>{{ object.attraction.name }}</h5>
                        <p class="text-muted">{{ object.attraction.location }}</p>
                        {% if object.notes %}
                        <p><strong>备注：</strong>{{ object.notes }}</p>
                        {% endif %}
                        <p><strong>收藏时间：</strong>{{ object.created_at|date:"Y-m-d H:i" }}</p>
                    </div>
                    
                    <form method="post">
                        {% csrf_token %}
                        <button type="submit" class="btn btn-danger">确认取消收藏</button>
                        <a href="{% url 'collect:my_collections' %}" class="btn btn-default">返回</a>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}